package com.hera.process.config.service;

import java.util.List;
import java.util.Map;

import com.hera.base.service.BaseService;
import com.hera.base.util.FiltroDTO;
import com.hera.process.workflow.domain.ProcessInstance;
import com.hera.process.workflow.domain.Stage;
import com.hera.process.workflow.domain.TaskInstanceCache;

public interface ProcessInstanceService extends BaseService<ProcessInstance, Long> {

	public List<ProcessInstance> findAll(FiltroDTO filtroDTO);
	public ProcessInstance createProcessInstance(Stage stage);
	public ProcessInstance createProcessInstance(Stage stage, Map<String, Object> entity);
	public ProcessInstance udpateProcessInstance(TaskInstanceCache taskInstanceCache, Map<String, Object> entity);
	
}
